# -*- coding: utf-8 -*-
"""
Created on Sun Apr 12 08:42:43 2020

@author: wjx
"""
import os
print(__file__)
f_dir = os.path.abspath(os.path.dirname(__file__))
  
def get_size(dir):
    size = 0
    for root,dirs,files in os.walk(f_dir):
        size += sum([os.path.getsize(os.path.join(root,name))for name in files])
    return size

if __name__ == '__main__':
    size = get_size(f_dir)
    print('Total size is: %.3f Mb'% (size/1024/1024))